package com.jack.Extends;

public class Teacher extends People{
    //定义私有实例成员变量
    private String teacherID;

    //定义无参构造器
    Teacher(){

    }

    //定义有参构造器
    Teacher(String name,int age,char sex,String teacherID){
        super(name,age,sex);
        this.teacherID = teacherID;
    }

    @Override
    public void show(){
        System.out.println("姓名:"+this.getName()+"  年龄:"+this.getAge()+"  性别:"+this.getSex()+"  工号:"+this.teacherID);
    }

}
